import request from '@/config/request.js';

// 获取列表
export const getListAPI = (params) => request.get('/api/wcsStorage/selectToBind', params)

// 任务创建
export const createMissionAPI = (params) => request.post('/api/wcsTask/createTask', params)

// 绑定储位和台车
export const bindKurumaAPI = (params) => request.post('/api/merge/bindContainerAndStorage', params)

// 根据储位查询台车和列表信息/根据台车查询列表信息
export const checkInfoAPI = (params) => request.get('/api/merge/selectBindData', params)

// 解除储位和台车
export const unBindKurumaAPI = (params) => request.post('/api/merge/unBindContainerAndStorage', params)

// 扫储位查询
export const searchDescriptionAPI = (params) => request.post(`/api/wcsStorage/queryByStorageCode/${params}`, params)

// 判断任务起点终点是否符合规则
export const checkRuleAPI = (params) => request.post('/api/wcsTask/checkTask', params)

// 判断台车与绑定储位是否符合线体要求
export const checkStorageandLineAPI = (params) => request.get('/api/wcsContainerRule/queryContainerRule', params)

// 查询台车物料明细
export const checkKurumaDetailAPI = (params) => request.post(`/api/wcsContainerDetail/query/${params}`, params)

// 新增物料接口
export const addMaterialAPI = (params) => request.post('/api/wcsContainerDetail', params)

// 查询物料是否符合规则
export const checkMaterialAPI = (params) => request.get('/api/wcsContainerRule/queryMaterialRule', params)

// 单删
export const singleDelAPI = (data) => request.post(`/api/wcsContainerDetail/unbind/${data}`, data)

// 全删
export const allDelAPI = (params) => request.post(`/api/wcsContainerDetail/unbindAll/${params}`, params)

// 推荐算法接口
export const osusumeStorageAPI = (params) => request.post(`/api/wcsStorage/queryByStorageCodeToTarget/${params}`, params)